import scrapy


class RequestParamsSpider(scrapy.Spider):
    name = "request_params"

    async def start(self):
        yield scrapy.Request(url='http://httpbin.org/get?name=zdz', cb_kwargs={'age': 10}, meta={'add': 101})

    async def parse(self, response, age):
        print(response.meta['add'], age)
        response.meta.update({
            'play': 'lol'
        })
        yield scrapy.Request(url='http://httpbin.org/post', method='POST', cb_kwargs={'age': age}, meta=response.meta,
                             callback=self.parse_params)

    async def parse_params(self, response, age):
        print(response.meta, age)
